\label{\detokenize{longtable:longtable-having-align-option}}

\begin{savenotes}\sphinxatlongtablestart\begin{longtable}[r]{|l|l|}
\hline
\sphinxstyletheadfamily 
header1
&\sphinxstyletheadfamily 
header2
\\
\hline
\endfirsthead

\multicolumn{2}{c}%
{\makebox[0pt]{\sphinxtablecontinued{\tablename\ \thetable{} -- continued from previous page}}}\\
\hline
\sphinxstyletheadfamily 
header1
&\sphinxstyletheadfamily 
header2
\\
\hline
\endhead

\hline
\multicolumn{2}{r}{\makebox[0pt][r]{\sphinxtablecontinued{Continued on next page}}}\\
\endfoot

\endlastfoot

cell1-1
&
cell1-2
\\
\hline
cell2-1
&
cell2-2
\\
\hline
cell3-1
&
cell3-2
\\
\hline
\end{longtable}\sphinxatlongtableend\end{savenotes}
